package com.mrtan.bean;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 库存
 *
 * @TableName stock
 */
@Data
public class Stock implements Serializable {
    private Integer productId;
    private Integer number;
    /**
     * 仓库id
     */
    private Warehouse warehouse;

    /**
     * 产品
     */
    private Product product;

    /**
     * 库存
     */
    private Integer quantity;

    /**
     * 销售价格
     */
    private BigDecimal sellingPrice;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 库存发生变化
     */
    private LocalDateTime updateTime;

    /**
     * 状态（0有货，1缺货）
     */
    private Integer status;


    private static final long serialVersionUID = 1L;
}
